/**
 * Created by liguangsong on 16/8/9.
 */
import React, { Component } from 'react'
import TitleView from './titleView.js'
import TeamRankView from './teamRankView.js'
import { selectConference } from '../../action/index.js'
import {connect } from 'react-redux'

class Team extends Component {
    render() {
        const { dispatch } = this.props;
        //console.log('render');
        return (
            <div>
                <TitleView selectConference={(text) => dispatch(selectConference(text))}/>
                <TeamRankView id="teamView"/>
            </div>
        )
    }

}

export default connect()(Team);